package com.sfh.tourist;

import com.sfh.lib.http.transaction.OutreachRequest;

import okhttp3.Interceptor;
import okhttp3.logging.HttpLoggingInterceptor;

public class ReqBase<T> extends OutreachRequest<T> {
    public ReqBase(String path) {
        super(path);
    }

    @Override
    public String getUrl() {
        return "http://47.107.184.209:8081";
    }
    @Override
    public Interceptor getInterceptor() {
        HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
        //这行必须加 不然默认不打印
        interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
        return interceptor;
    }
}
